package com.dex4d.ui.main.model;


import org.json.JSONObject;

import java.util.HashMap;

/**
 * 作者    LiQingyi
 * 时间    2018/11/14 15:52
 * 文件    dex4d-android
 * 描述
 */
public class AccountCoinJson {
    /**
     * 可变现资产
     */
    public HashMap<String, String> coins;

    /**
     * dex4d资产
     */
    public HashMap<String, String> d4d;

    /**
     * 交易分红
     */
    public HashMap<String, String> dividends;

    /**
     * 推荐分红
     */
    public HashMap<String, String> rebateFees;

    /**
     * 总分红
     */
    public JSONObject revenue;

    public CoinToken createCoinToken(String symbol, String logo) {
        CoinToken token = new CoinToken(symbol, logo);

        token.coins = coins.get(symbol);
//        token.coinsPrice = coin.coins.ethLegeal;
//
        token.dex4d = d4d.get(symbol);
//        token.dex4dPrice = coin.d4d.ethPrice;
//
        token.dividends = dividends.get(symbol);
//        token.dividendsPrice = coin.dividends.ethLegeal;
//
        token.rebateFees = rebateFees.get(symbol);
//        token.rebateFeesPrice = coin.rebateFees.ethLegeal;

        return token;
    }


}
